package com.slipper.system.menu.front;

import com.slipper.common.bo.Result;
import com.slipper.common.util.ResultUtil;
import com.slipper.system.api.menu.bo.MenuPrivilegeBO;
import com.slipper.system.api.menu.service.IMenuPrivilegeSv;
import com.slipper.system.menu.service.MenuPrivilegeService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class MenuPrivilegeSv implements IMenuPrivilegeSv {
    @Resource
    private MenuPrivilegeService menuPrivilegeService;

    @Override
    public Result<List<MenuPrivilegeBO>> queryList(MenuPrivilegeBO bo) {
        return ResultUtil.successResult(menuPrivilegeService.queryList(bo));
    }
}
